<?php
	if (!isset($_GET['id']) || !isset($_GET['severity'])) exit;

	require_once('Config.classes.php');
	require_once('Database.classes.php');
	
	$Config = new Config();
	$DB = new Database();
	
	$EventID = $_GET['id'];
	$Score = $_GET['severity'];
	
	if (!get_magic_quotes_gpc()) {
		$EventID = addslashes($EventID);
		$Score = addslashes($Score);
	}
	
	$DB -> insert(
		array(
			'EventID' => $EventID,
			'Score' => $Score
		),
		'Events_Feedback'
	);
?>